<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>sso-A</title>
</head>
<body>
    <h1>欢迎来到A系统</h1>
    <span>
        <a href="http://localhost:9010/view/index">返回首页</a>
        <br></br>
        <a th:if="${session.loginUser == null}" href="http://localhost:9000/view/login?target=http://localhost:9020/view/index">登录</a>
        <a th:unless="${session.loginUser == null}" href="http://localhost:9000/view/logout?target=http://localhost:9020/view/index">登出</a>
    </span>
    <p th:unless="${session.loginUser == null}">
        <span style="color:deepskyblue" th:text="${session.loginUser.username}"></span> 已登录!
    </p>
</body>
</html>